import React, { Component, PureComponent } from 'react';
import { StyleSheet, Text, View, Button, DeviceEventEmitter } from 'react-native';
import styles from 'src/styles';

function Other({ navigation }) {
  return (
    <View style={styles.container}>
      <Text>Other</Text>
      <Button onPress={() => { navigation.goBack() }} title='Go Back' />
      <Button onPress={() => { navigation.pop() }} title='Do Pop' />
      <Button onPress={() => { navigation.navigate('other2') }} title='Goto Other2' />
      <Button onPress={() => { navigation.navigate('welcome') }} title='Goto Welcome' />
      <Button onPress={() => { navigation.navigate('tab') }} title='Goto Home' />
    </View>
  )
}

export default Other;
